package com.guigu.controller.lq.service.impl;

import com.guigu.controller.lq.mapper.LqTzdfMapper;
import com.guigu.controller.lq.pojo.LqTzdf;
import com.guigu.controller.lq.service.LqTzdfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LqTzdfServiceimpl implements LqTzdfService {
    @Autowired
    LqTzdfMapper lqTzdfMapper;

    public int tzfsadd(LqTzdf lqTzdf) {
        return lqTzdfMapper.insert(lqTzdf);
    }

    public List<LqTzdf> selfs(Integer tid) {
        return lqTzdfMapper.selfs(tid);
    }

    public LqTzdf tfs(Integer tid) {
        return lqTzdfMapper.selectByPrimaryKey(tid);
    }

    public int upfs(LqTzdf lqTzdf) {
        return lqTzdfMapper.updateByPrimaryKey(lqTzdf);
    }

    public List<LqTzdf> fsid(String vipid) {
        return lqTzdfMapper.fsid(vipid);
    }
}
